#ifndef GENERICSAVEDIALOG_H
#define GENERICSAVEDIALOG_H

#include <QDialog>
#include <ui_genericsavewidget.h>

class GenericSaveDialog : public QDialog
{
  Q_OBJECT

public:
  enum Result
  {
    Result_Save,
    Result_DontSave,
    Result_Cancel
  };

private:
  Ui::GenericSaveWidget _gui;
  Result                _result;

public:
  GenericSaveDialog(QWidget *parent = 0);

  void SetSaveType (const QString& saveType);
  void SetSaveMessage (const QString& saveMessage);

  Result GetResult () const { return _result; }

private slots:
  void on_pushButtonSave_clicked ();
  void on_pushButtonDontSave_clicked ();
  void on_pushButtonCancel_clicked ();


};

#endif // GENERICSAVEDIALOG_H
